const fp = require("lodash/fp");
const cars = require("./data.json");

const getFirstCarName = fp.flowRight(
  (car) => fp.prop("name", car),
  fp.first
);

console.log(getFirstCarName(cars));
